<template>
  <div>
      {{from}}
      {{count}}
      <button @click="change">点击</button>
        <van-button>132</van-button>
  </div>
</template>
<script>
import {onMounted, reactive,ref} from 'vue'
import axios from '../http/axion'
export default {
    setup(){
        let from=reactive({"name":"123","password":"123"})
        let count = ref()

        const change=()=>{
            from.name="abc"
            count.value=12
            axios('test','get').then(res=>{
                console.log(res.code)
            })

        }
        onMounted(()=>{
            change()
        })
        return{
            from,
            count,
            change
        }
    }
}
</script>

<style>

</style>